package com.ls.pattern.decorator;

import com.ls.pattern.decorator.enums.MenuEnum;
import com.ls.pattern.decorator.menu.AbstractMenu;

import java.util.Set;

/**
 * 菜单装饰器
 *
 * @author 挥之以墨
 */
public abstract class BaseMenuDecorator extends AbstractMenu {

    private AbstractMenu abstractMenu;

    protected BaseMenuDecorator(AbstractMenu abstractMenu) {
        this.abstractMenu = abstractMenu;
    }

    @Override
    public Set<MenuEnum> getMenu() {
        return this.abstractMenu.getMenu();
    }
}
